home *** CD-ROM | disk | FTP | other *** search
-
- #ifndef __MSTGRID_H
- #define __MSTGRID_H
-
- class MStGrid : public MWindow {
- protected:
- WORD Length;
- WORD Width;
- WORD CellLength;
- WORD CellWidth;
- public:
- MStGrid (int x1, int y1, int x2, int y2,
- WORD TheLength, WORD TheWidth,
- WORD AHandle, WORD AnHParent = HROOT);
- MStGrid (const RECT& ABox, WORD TheLength,
- WORD TheWidth, WORD AHandle,
- WORD AnHParent = HROOT);
- virtual void LoadDirect (int fp);
- virtual void SaveDirect (int fp);
- virtual inline void WhichCell (int x, int y, POINT& cell);
- virtual void SetCellSize (WORD length, WORD width);
- virtual void Draw (int cx, int cy) = 0;
- virtual WORD Handler (EVENT event) = 0;
- ~MStGrid (void);
- };
-
- #endif
-